
import axios from 'axios'

//配置请求的根路径

axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'
axios.interceptors.request.use((config) =>{
    // console.log(config);
    // 必须return config
    config.headers.Authorization = localStorage.getItem('token')
    return config
})

export  default  axios